<html>
<script type="text/javascript">
function runTest() {
  var canvas = document.getElementById("glcanvas");
  var gl = canvas.getContext('webgl');
  if (!gl) {
    if (window.domAutomationController) {
      window.domAutomationController.send("FAILED");
    } else {
      alert("Unable to initialize WebGL");
    }
    return;
  }
  // This extension is supposed to be disabled via a blocklist entry.
  if (gl.getExtension('WEBGL_lose_context')) {
    window.domAutomationController.send("FAILED");
  } else {
    window.domAutomationController.send("FINISHED");
  }
}
</script>
<body onload="runTest()">
  <canvas id="glcanvas" width="640" height="480">
    Your browser doesn't appear to support the HTML5 <code>&lt;canvas&gt;</code> element.
  </canvas>
</body>
</html>
